<!--论坛货币-->
<script setup>
import {Money} from "@ginstone/nga-api/dist/src/response/field/Money"


import {toRefs} from "vue";

const props = defineProps({data: Money})
const {data} = toRefs(props)

const icon = {
    gold: '/resources/ngabbs/nga_classic/g.gif',
    silver: '/resources/ngabbs/nga_classic/s.gif',
    copper: '/resources/ngabbs/nga_classic/c.gif',
}

</script>

<template>
  <span v-for="key in ['gold','silver','copper']">
      <span v-if="data[key]">
          <span style="font-weight: bold;margin-right: 2px">{{ data[key] }}</span>
          <img :src="icon[key]" alt="" style="margin-right: 2px"/>
      </span>
  </span>
</template>

<style scoped>

</style>